package com.contactbook.web.client.dto;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class GroupDTO implements Serializable {

private static final long serialVersionUID = 1L;
	
	private int id;
	private String name;
	private String description;
	private AccountDTO account;
	private Set<ContactDTO> contacts = new HashSet<ContactDTO>();
	
	public GroupDTO() {}
	
	public GroupDTO(String name, String description) {
		this.name = name;
		this.description = description;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public AccountDTO getAccount() {
		return account;
	}

	public void setAccount(AccountDTO account) {
		this.account = account;
	}

	public Set<ContactDTO> getContacts() {
		return contacts;
	}

	public void setContacts(Set<ContactDTO> contacts) {
		this.contacts = contacts;
	}

}
